import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'app_theme.dart';

class ThemeController extends GetxController {
  final _isDarkMode = false.obs;

  ThemeMode get themeMode => _isDarkMode.value ? ThemeMode.dark : ThemeMode.light;

  ThemeData get lightTheme => lightThemeData;

  ThemeData get darkTheme => darkThemeData;

  void toggleTheme() {
    _isDarkMode.value = !_isDarkMode.value;
  }
}
